package cn.edu.scau.cmi.front.dao;

import java.util.Set;

import org.springframework.dao.DataAccessException;

import cn.edu.scau.cmi.ema.dao.JpaDao;
import cn.edu.scau.cmi.ema.domain.*;
import cn.edu.scau.cmi.ema.domain.base.CmiNamedQuery;


public interface CmiKnowledgeBaseDAO extends JpaDao<CmiNamedQuery> {
	
	public Integer countKnowledgeItems(String sql);
	
	public Set<Object> findKnowledgeItemsLimit(String sql);
	
	public Set<Object> findKnowledgeItemsByCompositeProperities(String sql, int startResult, int maxRows) ;
	
	public Set<Standard> findStandardsByFeatureId(int startResult, int maxRows,int featureId)throws DataAccessException;
	
	public Set<Object> findFeaturesByStandardId(int startResult, int maxRows,int standardId)throws DataAccessException;

}
